package com.woniuxy.project.campus.canteen.service;

import com.woniuxy.project.campus.canteen.dto.ShopInfoDto;
import com.woniuxy.project.campus.canteen.model.Shops;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.project.campus.canteen.param.UpdateShopInfoParam;
import com.woniuxy.project.campus.canteenModelform.EditShopTimeForm;
import com.woniuxy.project.campus.canteenModelform.IsOperatingForm;
import com.woniuxy.project.campus.canteenModelform.XiuShopInfoForm;

import java.io.IOException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 猫将军
 * @since 2025年02月17日
 */
public interface ShopsService extends IService<Shops> {

    Shops getShopInfo(String token);

    void addShopInfo(UpdateShopInfoParam shopinfo) throws IOException;

    String getShopName(Integer shopId);

    Shops getShopDetail(String token);

    ShopInfoDto ShopInfoDto(String token);

    void editYourStoreDetails(String token, XiuShopInfoForm xiuShopInfoForm) throws IOException;

    void editShopTime(String token, EditShopTimeForm editShopTime);

    EditShopTimeForm getShopMessage(String token);

    void isOperating(String token, IsOperatingForm isOpen);

    Boolean getOperating(String token);

    Integer getShopIdByAccessId(Integer accessId);
}
